/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package feesmodule.services;

import com.google.inject.Binder;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Module;

/**
 *
 * @author Oleg
 */
public class ServicesModule implements Module
{
    private static Injector myInjector = null;
    public void configure(Binder binder)
    {
     //   binder.bind(IDataService.class).to(MockDataService.class);
           binder.bind(IDataService.class).to(DataService.class);
     //   binder.bind(IClientDataPorvider.class).to(MockClientDataProvider.class);

    }
    public static Injector getTheInjector()
	{
		if (myInjector == null)
		{
			ServicesModule module = new ServicesModule();
			myInjector = Guice.createInjector(module);
		}
		return myInjector;
	}
}
